package com.anjho.dao;

import java.io.Serializable;
import java.util.List;

import com.anjho.pojo.Publisher;

public class DAOPublisher extends DAOGeneric implements Serializable {
	
	private static final long serialVersionUID = 8615324497658512118L;

	public DAOPublisher() {
		super();
	}

	@SuppressWarnings("unchecked")
	public List<Publisher> getPublisherList() throws Exception {
		return (List<Publisher>)super.getList("Publisher.getPublisherList");
	}
	
	public Publisher getPublisherByPucode(int pucode) throws Exception{
		return (Publisher)super.getObjectByParameter(new String[]{"pucode"}, new Object[]{pucode}, "Publisher.getPublisherByPucode");
		//return (Publisher)super.getObjectById(pucode, "Publisher.getPublisherByPucode", "pucode");
	}
}
